package com.test.Driver.swing;

public class GreenBarSupervisingController {
	private  GrennBarModel model;
	private  GreenBarView view;
	private GreenBarSupervisingController(final GrennBarModel model, GreenBarView view) {
		this.model = model;
		this.view = view;
		view.addRunButtonListener(new RunButtonListener(){
			public void onRunButtonClick(){
				model.runTests();
				updateView();
			}
		});
		updateView();
	}
	void updateView(){
		view.update(model);
	};
}
